import Vue from 'vue'
import VueI18n from 'vue-i18n'
import en from './en-US';
import zh from './zh-CN';
import hk from './zh-HK';

import enUS from 'vant/lib/locale/lang/en-US';
import zhCN from 'vant/lib/locale/lang/zh-CN';
import zhHK from 'vant/lib/locale/lang/zh-HK';
console.log(zhCN)
Vue.use(VueI18n)
const messages = {
    us: {
        ...Object.assign(en, enUS)
    },
    cn: {
        ...Object.assign(zh, zhCN)
    },
    hk: {
        ...Object.assign(hk, zhHK)
    }
}
const i18n = new VueI18n({
    locale: 'cn',
    messages,
    silentTranslationWarn: true
})
export default i18n